/**
 * Activity which displays a registration screen to the user.
 */

package com.projekt2013.hell2peer;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.EditText;

public class RegisterActivity extends Activity {

    private String mEmail;
    private String mPassword;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_register);

        Intent intent = getIntent();
        Bundle extras = intent.getExtras();
        setmEmail(extras.getString("EXTRA_USERNAME"));
        setmPassword(extras.getString("EXTRA_PASSWORD"));

        EditText mEmailViewReg = (EditText) findViewById(R.id.emailReg);
        mEmailViewReg.setText(mEmail);

        EditText mPasswordViewReg = (EditText) findViewById(R.id.passwordReg);
        mPasswordViewReg.setText(mPassword);
    }

    /**
     * @param mEmail the mEmail to set
     */
    void setmEmail(String mEmail) {
        this.mEmail = mEmail;
    }

    /**
     * @param mPassword the mPassword to set
     */
    void setmPassword(String mPassword) {
        this.mPassword = mPassword;
    }
}
